<template>
  <div class="RecommendView" >
    <div class="recommend-item" v-for="item in recommends">
      <a :href="item.link">
        <img :src="item.image" alt="">
        <p>{{item.title}}</p>
      </a>

    </div>
  </div>
</template>

<script>
export default {
  name: "RecommendView",
  props: {
    recommends: {
      type: Array,
      default() {
        return [];
      }
    }
  }
}
</script>

<style scoped>

  .RecommendView{
    display: flex;
    font-size: 13px;
    padding-top: 12px;
    padding-bottom: 18px;
    border-bottom: 9px solid #eee;
  }

  .recommend-item{
    flex: 1;
    text-align: center;
  }
  .recommend-item img{
    width: 85px;
    height: 85px;
    margin-bottom: 5px;
  }


</style>
